using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FullHeart:MonoBehaviour {
	public void SetValue(int lowerBound){
		transform.localPosition=Vector3.left*lowerBound*68;
		
		HeartPiece[] pieces = GetComponentsInChildren<HeartPiece>();
		Angle angle=Angle.down;
		for(int i=0;i<4;i++){
			pieces[i].transform.rotation=angle.quaternion;
			pieces[i].SetValue(lowerBound+0.25f*i);

			angle.degree-=90;
		}
	}
}
